package com.dmap.admin.bo.backgroundv2;

import com.dmap.admin.po.Device;
import com.dmap.base.pojo.BasePojo;

/**
 * \* User: helei
 * \* Date: 28/05/18
 * \* Description:
 * \
 */
public class DeviceBo extends BasePojo {
    private String id;//主键id
    private String typeId;//设备类型id，该设备是属于那个大类的，是手表/称/血压仪还是其它
    private String firmware;//设备固件编号
    private String deviceName;//设备名称
    private String deviceImageUrl;//该设备的图片url
    private Integer status;//状态：1正常，2禁用
    private String note;//备注
    private Long createTime;//创建时间
    private Long updateTime;//最后更新时间

    public DeviceBo(Device device) {
        this.id = device.getId().toString();
        this.typeId = device.getTypeId().toString();
        this.firmware = device.getFirmware();
        this.deviceName = device.getDeviceName();
        this.deviceImageUrl = device.getDeviceImageUrl();
        this.status = device.getStatus();
        this.note = device.getNote();
        this.createTime = device.getCreateTime();
        this.updateTime = device.getUpdateTime();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getFirmware() {
        return firmware;
    }

    public void setFirmware(String firmware) {
        this.firmware = firmware;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceImageUrl() {
        return deviceImageUrl;
    }

    public void setDeviceImageUrl(String deviceImageUrl) {
        this.deviceImageUrl = deviceImageUrl;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }
}